<!--
 * @Author: fanyaqing
 * @Date: 2021-08-09 16:25:06
 * @LastEditTime: 2021-08-09 16:33:43
 * @LastEditors: fanyaqing
 * @Description: 详情页的轮播图
 * @FilePath: \supermall\src\views\detail\childComponents\detailSwiper.vue
-->
<template>
  <div>
    <swiper>
      <swiper-item v-for="(item, index) in topImages" :key="index">
          <img :src="item.image">
      </swiper-item>
    </swiper>
  </div>
</template>
<script>
import {Swiper,SwiperItem} from 'components/common/swiper';
export default {
  props:{
    topImages:{
      type:Array,
      default:()=>{
        return []
      }
    }
  },
  components:{
    Swiper,
    SwiperItem
  },
  created(){
  }
  
}
</script>
<style scoped>

</style>